package com.wen.spingbootshiro.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


//@RestController
//@RequestMapping("/demo")
@Controller
public class DemoController {

private Logger log = LoggerFactory.getLogger(DemoController.class);

    @RequestMapping("/index")
    public String demo() {
        log.info("========================");
        return "index";
    }

    @RequestMapping("/login")
    public String demo1() {
        log.info("22222222222222222222222222");
        return "login";
    }
}
